﻿using AutoMapper;
using BCDto.TMS.Contraband.ContrabandCategory;
using BCDto.TMS.Contraband.ContrabandConfig;
using BCEntity.TMS.Contraband.ContrabandCategory;
using BCEntity.TMS.Contraband.ContrabandConfig;

namespace BCService.MapperProfiles.TMS.Contraband
{
    public class ContrabandProfile : Profile
    {
        public ContrabandProfile()
        {
            CreateMap<ContrabandCategoryEntity, ContrabandCategoryDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<ContrabandCategoryDto, ContrabandCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<ContrabandConfigEntity, ContrabandConfigDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<ContrabandConfigDto, ContrabandConfigEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<ContrabandConfigViewEntity, ContrabandConfigViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
